package com.example.douyin.chat;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.hyphenate.chat.EMMessage;
import com.hyphenate.chat.adapter.message.EMAMessage;

public class ChatEntity extends EMMessage implements MultiItemEntity {


    public ChatEntity(EMAMessage message) {
        super(message);
    }

    @Override
    public int getItemType() {
        int type = 0;//发送
        Direct direct = Direct.SEND;
        switch (direct){
            case SEND:
                type=0;
                break;
            default:
                type=1;
                break;

        }
        return type;
    }
}
